<?php
/**
 * 行业分类表
 * User: Administrator
 * Date: 2017/8/25
 * Time: 15:35
 */
defined('InNcPHP') or exit('Access Invalid!');

class classModel extends Model{

    public function __construct(){
        parent::__construct('class');
    }

    public function getclassInfo($condition = array(), $field = '*'){
        return $this->field($field)->where($condition)->find();
    }

    public function getclassList($condition = array(), $field = '*', $order = 'class_id asc'){
        return $this->field($field)->where($condition)->order($order)->select();
    }
}